<?php

$profiling_data['appStartup'] = microtime(true);

define('APPLICATION_PATH',
       realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'application'));

require_once(APPLICATION_PATH . DIRECTORY_SEPARATOR . 'Application.php');

$zfApp = new ZfApplication;

$zfApp->setEnvironment('development');

$zfApp->setDebug(true);

$zfApp->bootstrap();

$profiling_data['appShutdown'] = microtime(true);

$profiling_data = array_merge($profiling_data, Zend_Controller_Front::getInstance()->getPlugin('Peter_Plugin_Profiling')->getProfilingData());

/*
Zend_Debug::dump($profiling_data);


echo '<pre>';
foreach ($profiling_data as $k => $v) {
	if (is_array ($v)) {
		foreach ($v as $k1 => $v1) {
			echo "$k:$k1:\t\t$v1\n";
		}
	} else {
		echo "$k:\t\t$v\n";
	}
}
*/